public class Main {
    public static void main(String[] args) {
        // 获取折线图对象并显示
        Chart lineChart = ChartFactory.getChart("lineChart");
        lineChart.disPlay();
        // 获取饼图对象并显示
        Chart pieChart = ChartFactory.getChart("pieChart");
        pieChart.disPlay();
        // 获取直方图对象并显示
        Chart histogramChart = ChartFactory.getChart("histogramChart");
        histogramChart.disPlay();
    }
}
